package com.unlcn.erp.hyc.interfaces.backend.enums;

/**
 * Created by zhiche024 on 2017/9/15.
 */
public enum TransitStatusEnum {
    ARRANGE(0,"安排"),
    TRUCK_LOADING(5,"装车"),
    LEAVE_CITY(10,"离城"),
    ARRIVED(15,"运抵");

    private final int value;
    private final String text;

    TransitStatusEnum(int value, String text){
        this.value = value;
        this.text = text;
    }

    public int getValue(){
        return value;
    }

    public String getText(){
        return text;
    }

    public static TransitStatusEnum getByValue(int value){
        for(TransitStatusEnum temp : TransitStatusEnum.values()){
            if(temp.getValue() == value){
                return temp;
            }
        }
        return null;
    }
}
